package com.van.entity.account;

import lombok.Data;

/**
 * @author VanKa qq:2395073039
 * @date 2021/8/20 14:54
 */
@Data
public class Account {
    private Long id;
    private String name;
    private String phone;
    private int status = 0;
    private Integer type = 0;
    private String msg;

    public Account(){
    }
    public Account(String msg){
        this.msg = msg;
    }
    public Account(User user){
        this.id = user.getId();
        this.name = user.getName();
        this.phone = user.getPhone();
    }
    public Account(Worker user){
        this.id = user.getId();
        this.name = user.getName();
        this.phone = user.getPhone();
        this.status = user.getStatus();
        this.type = user.getType();
    }
}
